package top.huiwow.utils;

public enum ItemType {
    Weapon,
    Armor,
    Accessory,
    Misc;

    public ItemType getType(String str) {
        for (ItemType itemType : ItemType.values()) {
            if (itemType.toString().equalsIgnoreCase(str)) {
                return itemType;
            }
        }
        return null;
    }
}
